home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 72 61 69 6e 2e |Path: ne|ws.rain.|
|00000010| 6f 72 67 21 75 73 65 6e | 65 74 0a 46 72 6f 6d 3a |org!usen|et.From:|
|00000020| 20 22 47 75 75 73 20 4c | 65 65 75 77 20 6a 72 2e | "Guus L|eeuw jr.|
|00000030| 22 20 3c 67 75 75 73 6c | 40 65 69 66 66 65 6c 2e |" <guusl|@eiffel.|
|00000040| 63 6f 6d 3e 0a 4e 65 77 | 73 67 72 6f 75 70 73 3a |com>.New|sgroups:|
|00000050| 20 63 6f 6d 70 2e 6c 61 | 6e 67 2e 63 2b 2b 0a 53 | comp.la|ng.c++.S|
|00000060| 75 62 6a 65 63 74 3a 20 | 52 65 3a 20 63 61 6c 6c |ubject: |Re: call|
|00000070| 62 61 63 6b 20 66 75 6e | 63 74 69 6f 6e 20 69 6e |back fun|ction in|
|00000080| 20 61 20 63 6c 61 73 73 | 0a 44 61 74 65 3a 20 57 | a class|.Date: W|
|00000090| 65 64 2c 20 31 34 20 46 | 65 62 20 31 39 39 36 20 |ed, 14 F|eb 1996 |
|000000a0| 31 30 3a 35 32 3a 34 34 | 20 2d 30 38 30 30 0a 4f |10:52:44| -0800.O|
|000000b0| 72 67 61 6e 69 7a 61 74 | 69 6f 6e 3a 20 49 6e 74 |rganizat|ion: Int|
|000000c0| 65 72 61 63 74 69 76 65 | 20 53 6f 66 74 77 61 72 |eractive| Softwar|
|000000d0| 65 20 45 6e 67 69 6e 65 | 65 72 69 6e 67 20 49 6e |e Engine|ering In|
|000000e0| 63 2e 20 68 74 74 70 3a | 2f 2f 77 77 77 2e 65 69 |c. http:|//www.ei|
|000000f0| 66 66 65 6c 2e 63 6f 6d | 2f 0a 4d 65 73 73 61 67 |ffel.com|/.Messag|
|00000100| 65 2d 49 44 3a 20 3c 33 | 31 32 32 32 46 37 43 2e |e-ID: <3|1222F7C.|
|00000110| 34 38 32 36 45 30 35 32 | 40 65 69 66 66 65 6c 2e |4826E052|@eiffel.|
|00000120| 63 6f 6d 3e 0a 52 65 66 | 65 72 65 6e 63 65 73 3a |com>.Ref|erences:|
|00000130| 20 3c 34 66 65 30 6c 6b | 24 63 75 33 40 61 6c 64 | <4fe0lk|$cu3@ald|
|00000140| 65 62 61 72 61 6e 2e 73 | 63 74 2e 66 72 3e 20 3c |ebaran.s|ct.fr> <|
|00000150| 50 69 6e 65 2e 4f 53 46 | 2e 33 2e 39 31 2e 39 36 |Pine.OSF|.3.91.96|
|00000160| 30 32 31 34 31 36 30 33 | 35 39 2e 31 39 39 32 34 |02141603|59.19924|
|00000170| 41 2d 31 30 30 30 30 30 | 40 73 74 69 6f 31 3e 0a |A-100000|@stio1>.|
|00000180| 4e 4e 54 50 2d 50 6f 73 | 74 69 6e 67 2d 48 6f 73 |NNTP-Pos|ting-Hos|
|00000190| 74 3a 20 40 6f 75 74 62 | 61 63 6b 2e 65 69 66 66 |t: @outb|ack.eiff|
|000001a0| 65 6c 2e 63 6f 6d 0a 4d | 69 6d 65 2d 56 65 72 73 |el.com.M|ime-Vers|
|000001b0| 69 6f 6e 3a 20 31 2e 30 | 0a 43 6f 6e 74 65 6e 74 |ion: 1.0|.Content|
|000001c0| 2d 54 79 70 65 3a 20 74 | 65 78 74 2f 70 6c 61 69 |-Type: t|ext/plai|
|000001d0| 6e 3b 20 63 68 61 72 73 | 65 74 3d 75 73 2d 61 73 |n; chars|et=us-as|
|000001e0| 63 69 69 0a 43 6f 6e 74 | 65 6e 74 2d 54 72 61 6e |cii.Cont|ent-Tran|
|000001f0| 73 66 65 72 2d 45 6e 63 | 6f 64 69 6e 67 3a 20 37 |sfer-Enc|oding: 7|
|00000200| 62 69 74 0a 58 2d 4d 61 | 69 6c 65 72 3a 20 4d 6f |bit.X-Ma|iler: Mo|
|00000210| 7a 69 6c 6c 61 20 32 2e | 30 20 28 58 31 31 3b 20 |zilla 2.|0 (X11; |
|00000220| 49 3b 20 4c 69 6e 75 78 | 20 31 2e 32 2e 38 20 69 |I; Linux| 1.2.8 i|
|00000230| 35 38 36 29 0a 54 6f 3a | 20 53 63 68 6d 69 64 74 |586).To:| Schmidt|
|00000240| 20 43 61 72 73 74 65 6e | 20 3c 69 30 31 30 40 73 | Carsten| <i010@s|
|00000250| 74 69 6f 31 3e 0a 43 43 | 3a 20 67 75 75 73 6c 0a |tio1>.CC|: guusl.|
|00000260| 0a 53 63 68 6d 69 64 74 | 20 43 61 72 73 74 65 6e |.Schmidt| Carsten|
|00000270| 20 77 72 6f 74 65 3a 0a | 3e 20 0a 3e 20 48 69 2c | wrote:.|> .> Hi,|
|00000280| 20 65 76 65 72 79 62 6f | 64 79 2c 0a 3e 20 0a 3e | everybo|dy,.> .>|
|00000290| 20 44 6f 65 73 20 61 6e | 79 62 6f 64 79 20 68 61 | Does an|ybody ha|
|000002a0| 76 65 20 61 6e 20 69 64 | 65 61 2c 20 68 6f 77 20 |ve an id|ea, how |
|000002b0| 49 20 63 61 6e 20 70 75 | 74 20 61 20 63 61 6c 6c |I can pu|t a call|
|000002c0| 62 61 63 6b 20 66 75 6e | 63 74 69 6f 6e 20 69 6e |back fun|ction in|
|000002d0| 20 61 20 63 6c 61 73 73 | 2c 0a 3e 20 6c 6f 6f 6b | a class|,.> look|
|000002e0| 20 66 6f 72 20 74 68 65 | 20 65 78 61 6d 70 6c 65 | for the| example|
|000002f0| 3a 0a 3e 20 0a 3e 20 63 | 6c 61 73 73 20 58 20 7b |:.> .> c|lass X {|
|00000300| 0a 3e 20 20 20 44 57 4f | 52 44 20 54 68 72 65 61 |.> DWO|RD Threa|
|00000310| 64 50 72 6f 63 20 28 2e | 2e 70 61 72 6d 73 2e 2e |dProc (.|.parms..|
|00000320| 2e 29 3b 0a 3e 20 20 20 | 76 6f 69 64 20 53 74 61 |.);.> |void Sta|
|00000330| 72 74 49 74 20 28 76 6f | 69 64 29 3b 0a 3e 20 2e |rtIt (vo|id);.> .|
|00000340| 2e 2e 0a 3e 20 7d 3b 0a | 3e 20 0a 3e 20 44 57 4f |...> };.|> .> DWO|
|00000350| 52 44 20 58 3a 3a 54 68 | 72 65 61 64 50 72 6f 63 |RD X::Th|readProc|
|00000360| 20 28 2e 2e 2e 70 61 72 | 6d 73 2e 2e 2e 29 0a 3e | (...par|ms...).>|
|00000370| 20 7b 0a 3e 20 20 20 20 | 2e 2e 2e 2e 0a 3e 20 7d | {.> |.....> }|
|00000380| 0a 3e 20 0a 3e 20 76 6f | 69 64 20 58 3a 3a 53 74 |.> .> vo|id X::St|
|00000390| 61 72 74 49 74 20 28 76 | 6f 69 64 29 0a 3e 20 7b |artIt (v|oid).> {|
|000003a0| 0a 3e 20 20 20 68 54 68 | 72 65 61 64 20 3d 20 43 |.> hTh|read = C|
|000003b0| 72 65 61 74 65 54 68 72 | 65 61 64 20 28 2e 2e 2e |reateThr|ead (...|
|000003c0| 2c 20 54 68 72 65 61 64 | 50 72 6f 63 2c 20 2e 2e |, Thread|Proc, ..|
|000003d0| 2e 29 3b 0a 3e 20 7d 0a | 3e 20 0a 3e 20 44 6f 6e |.);.> }.|> .> Don|
|000003e0| 27 74 20 77 6f 72 72 79 | 20 61 62 6f 75 74 20 54 |'t worry| about T|
|000003f0| 68 72 65 61 64 73 2c 20 | 69 74 20 69 73 20 6a 75 |hreads, |it is ju|
|00000400| 73 74 20 61 6e 20 65 78 | 61 6d 70 6c 65 2e 20 49 |st an ex|ample. I|
|00000410| 20 74 72 79 20 74 6f 20 | 66 69 6e 64 20 61 0a 3e | try to |find a.>|
|00000420| 20 73 6f 6c 75 74 69 6f | 6e 20 66 6f 72 20 74 68 | solutio|n for th|
|00000430| 65 20 67 65 6e 65 72 61 | 6c 20 70 72 6f 62 6c 65 |e genera|l proble|
|00000440| 6d 3a 20 48 6f 77 20 74 | 6f 20 75 73 65 20 61 20 |m: How t|o use a |
|00000450| 63 61 6c 6c 62 61 63 6b | 2d 66 75 6e 63 74 69 6f |callback|-functio|
|00000460| 6e 20 69 6e 20 61 20 63 | 6c 61 73 73 2e 0a 3e 20 |n in a c|lass..> |
|00000470| 0a 3e 20 49 20 74 68 69 | 6e 6b 20 73 6f 6d 65 20 |.> I thi|nk some |
|00000480| 70 72 6f 67 72 61 6d 6d | 65 72 73 20 6b 6e 6f 77 |programm|ers know|
|00000490| 20 74 68 65 20 70 72 6f | 62 6c 65 6d 2e 0a 0a 4a | the pro|blem...J|
|000004a0| 75 73 74 20 63 75 72 69 | 6f 75 73 2c 20 77 68 61 |ust curi|ous, wha|
|000004b0| 74 20 6b 69 6e 64 20 6f | 66 20 63 61 6c 6c 62 61 |t kind o|f callba|
|000004c0| 63 6b 73 20 64 6f 20 79 | 6f 75 20 6d 65 61 6e 3f |cks do y|ou mean?|
|000004d0| 0a 0a 54 68 65 72 65 20 | 61 72 65 20 61 20 66 65 |..There |are a fe|
|000004e0| 77 20 49 20 6b 6e 6f 77 | 20 6f 66 20 68 61 76 69 |w I know| of havi|
|000004f0| 6e 67 20 70 72 6f 62 6c | 65 6d 73 20 73 75 63 68 |ng probl|ems such|
|00000500| 20 61 73 20 73 69 67 6e | 61 6c 20 68 61 6e 64 6c | as sign|al handl|
|00000510| 65 72 73 2c 20 77 69 6e | 64 6f 77 20 73 79 73 74 |ers, win|dow syst|
|00000520| 65 6d 0a 63 61 6c 6c 62 | 61 63 6b 73 2c 20 63 61 |em.callb|acks, ca|
|00000530| 6c 6c 62 61 63 6b 73 20 | 74 68 61 74 20 61 72 65 |llbacks |that are|
|00000540| 20 63 61 6c 6c 65 64 20 | 74 68 72 6f 75 67 68 20 | called |through |
|00000550| 70 6f 69 6e 74 65 72 73 | 20 74 6f 20 66 75 6e 63 |pointers| to func|
|00000560| 74 69 6f 6e 73 2e 0a 0a | 59 6f 75 20 68 61 76 65 |tions...|You have|
|00000570| 20 74 6f 20 62 65 20 64 | 61 72 6e 20 73 75 72 65 | to be d|arn sure|
|00000580| 20 74 68 61 74 20 74 68 | 65 20 74 68 69 73 20 70 | that th|e this p|
|00000590| 6f 69 6e 74 65 72 20 69 | 73 20 73 75 70 70 6c 69 |ointer i|s suppli|
|000005a0| 65 64 20 28 61 6e 64 20 | 74 68 75 73 20 74 68 65 |ed (and |thus the|
|000005b0| 20 6f 62 6a 65 63 74 20 | 69 73 0a 6b 6e 6f 77 6e | object |is.known|
|000005c0| 20 6f 6e 20 77 68 69 63 | 68 20 74 68 65 20 63 61 | on whic|h the ca|
|000005d0| 6c 6c 62 61 63 6b 20 68 | 61 73 20 74 6f 20 62 65 |llback h|as to be|
|000005e0| 20 63 61 6c 6c 65 64 29 | 2e 0a 0a 49 66 20 79 6f | called)|...If yo|
|000005f0| 75 20 64 6f 6e 27 74 20 | 68 61 76 65 20 61 20 6c |u don't |have a l|
|00000600| 65 67 61 6c 20 74 68 69 | 73 20 70 6f 69 6e 74 65 |egal thi|s pointe|
|00000610| 72 2c 20 79 6f 75 20 6d | 61 79 20 2a 6e 6f 74 2a |r, you m|ay *not*|
|00000620| 20 75 73 65 20 2a 61 6e | 79 2a 20 6e 6f 6e 20 73 | use *an|y* non s|
|00000630| 74 61 74 69 63 20 63 6c | 61 73 73 0a 6d 65 6d 62 |tatic cl|ass.memb|
|00000640| 65 72 20 28 77 68 65 74 | 68 65 72 20 69 74 20 69 |er (whet|her it i|
|00000650| 73 20 61 20 6d 65 6d 62 | 65 72 20 66 75 6e 63 74 |s a memb|er funct|
|00000660| 69 6f 6e 20 6f 72 20 61 | 20 64 61 74 61 20 6d 65 |ion or a| data me|
|00000670| 6d 62 65 72 29 2e 20 49 | 74 20 77 69 6c 6c 20 66 |mber). I|t will f|
|00000680| 61 69 6c 2c 20 62 65 63 | 61 75 73 65 0a 69 74 20 |ail, bec|ause.it |
|00000690| 69 73 20 72 65 66 65 72 | 65 6e 63 65 64 20 28 69 |is refer|enced (i|
|000006a0| 6d 70 6c 69 63 69 74 6c | 79 29 20 74 68 72 6f 75 |mplicitl|y) throu|
|000006b0| 67 68 20 74 68 65 20 74 | 68 69 73 20 70 6f 69 6e |gh the t|his poin|
|000006c0| 74 65 72 20 28 77 68 69 | 63 68 20 77 61 73 20 61 |ter (whi|ch was a|
|000006d0| 6c 72 65 61 64 79 0a 63 | 6f 72 72 75 70 74 29 2e |lready.c|orrupt).|
|000006e0| 2e 2e 0a 0a 48 6f 70 65 | 20 74 68 69 73 20 68 65 |....Hope| this he|
|000006f0| 6c 70 73 2c 0a 09 47 75 | 75 73 0a |lps,..Gu|us. |
+--------+-------------------------+-------------------------+--------+--------+